# KERNEL_DIR=/home/zzlyang/code/ebf_linux_kernel_6ull_depth1/build_image/build
KERNEL_DIR=/home/zzlyang/code/ebf_6ull_linux

ARCH=arm
CROSS_COMPILE=arm-linux-gnueabihf-
export  ARCH  CROSS_COMPILE


obj-m := driver.o


all:
	$(MAKE) -C $(KERNEL_DIR) M=$(CURDIR) modules
	$(CROSS_COMPILE)gcc -o app BeepApp.c 
.PHONE:clean copy

clean:
	$(MAKE) -C $(KERNEL_DIR) M=$(CURDIR) clean	

copy:
	sudo  cp  *.ko  /home/embedfire/workdir
